CC = gcc
CFLAGS = -O2 -Wall -I .
INCLUDE = -I../include/
# This flag includes the Pthreads library on a Linux box.
# Others systems will probably require something different.
LIB = -lpthread


all: exercise_10_1

exercise_10_1: exercise_10_1.c csapp.o
	$(CC) $(CFLAGS) $(INCLUDE) $(LIB) -o exercise_10_1 csapp.o exercise_10_1.c
csapp.o:
	$(CC) $(CFLAGS) $(INCLUDE) -c ../src/csapp.c
clean:
	rm -f *.o  *~


